from django.contrib import admin
from django.urls import path
from .views import *
from django.contrib.auth.decorators import login_required
app_name='app0'
urlpatterns = [
    path('index/',login_required(Index.as_view()),name='index'),
    path('index/<int:page>/',Index.as_view(),name='index'),
    path('add/',Add.as_view(),name='add'),
    path('go/',Go.as_view(),name='go'),
    path('search/',serch,name='search'),
    path('search/<int:page>/',serch,name='search'),
    path('price/<int:id>',Price.as_view(),name='price'),
    path('delet/<int:id>',Delet.as_view(),name='delet'),
    path('update/<int:u_id>',Updat.as_view(),name='update'),
]